package com.ccl.iot.monitor;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.ccl.iot.publics.Debugger;

public class Autorun extends BroadcastReceiver {	
	@Override
	public void onReceive(Context context, Intent intent) {
		//Auto run the service when device startup completed
		if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")){
			Debugger.Print("=========Device boot completed==========");
		}else{
			Debugger.Print("Receive broadcast action:" + intent.getAction());			
		}
	}
}
